home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / DIRED.1 < prev    next >
Text File  |  1993-03-28  |  48KB  |  1,209 lines

  1. Info file dired.info, produced by Makeinfo, -*- Text -*- from input
  2. file dired.texi.
  3.  
  4.    This file documents Tree Dired, the GNU Emacs Directory Browser, and
  5. most of the extra features available as an option.
  6.  
  7.    Copyright (C) 1991, 1992 Free Software Foundation
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the section entitled "GNU General Public License" is included
  16. exactly as in the original, and provided that the entire resulting
  17. derived work is distributed under the terms of a permission notice
  18. identical to this one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the section entitled "GNU General Public
  23. License" may be included in a translation approved by the author
  24. instead of in the original English.
  25.  
  26. 
  27. File: dired.info,  Node: Top,  Next: Dired,  Prev: (dir),  Up: (dir)
  28.  
  29.    This file documents Tree Dired (version 6), the GNU Emacs Directory
  30. Editor, including the optional "Dired Extra" features.
  31.  
  32.    Tree Dired is an enhanced version of the Classic (18.xx Emacs)
  33. Dired and will be the Dired of Emacs 19.  It is known to work with
  34. Emacs 18.55 and 18.57 (and probably most earlier versions).
  35.  
  36. Revision of this manual:
  37.  
  38. $Id: dired.info-1,v 1.1.1.1 1992/06/29 22:32:20 devin Exp $
  39.  
  40. Report bugs to:
  41.  
  42.      Sebastian Kremer <sk@thp.uni-koeln.de>
  43.  
  44. * Menu:
  45.  
  46. * Dired::            Dired, the Directory Editor
  47. * Tree Dired Extra::        Tree Dired Extra features
  48. * Dired Internals::        Dired Internals
  49. * Dired Known Problems::    Known Problems with Dired
  50.  
  51.  -- Indices --
  52.  
  53. * Dired Variable Index::
  54. * Dired Function Index::
  55. * Dired Key Index::
  56. * Dired Concept Index::
  57.  
  58.  -- The Detailed Node Listing --
  59.  
  60. Dired, the Directory Editor
  61.  
  62. * Entering Dired::
  63. * Editing in Dired::
  64. * Listing Files in Dired::
  65. * Marking Files in Dired::
  66. * Mark-using Commands::
  67. * Commands That Do Not Use Marks::
  68. * Subdirectories in Dired::
  69. * Hiding Directories in Dired::
  70. * Acknowledgement::
  71. * Dired Customization::
  72.  
  73. Mark-using Commands
  74.  
  75. * Copy and Move Into a Directory::
  76. * Renaming and More With Regexps::
  77. * Other File Creating Commands::
  78. * Deleting Files With Dired::
  79. * Dired Shell Commands::
  80. * Compressing and Uncompressing::
  81. * Changing File Attributes::
  82. * Loading and Byte-compiling Emacs Lisp Files::
  83. * Printing the Marked Files::
  84.  
  85. Dired Customization
  86.  
  87. * Dired User Options::
  88. * Dired Configuration::
  89. * Dired Hooks::
  90.  
  91. Tree Dired Extra features
  92.  
  93. * Tree Dired Extra Features::
  94. * Dired Minibuffer History::
  95. * Inserting All Marked Subdirectories::
  96. * Dynamic Dired Markers::
  97. * Omitting Files in Dired::
  98. * Advanced Dired Mark Commands::
  99. * Virtual Dired::
  100. * Multiple Dired Directories::
  101. * Dired Local Variables::
  102. * Making Relative Symbolic Links in Dired::
  103. * Letting Dired Guess What Shell Command to Apply::
  104. * dired-trns.el::        Filename Transformers for Dired Shell Commands
  105. * dired-cd.el::            Changing the Working Directory for Dired Shell Commands
  106. * dired-nstd.el::        Nested Dired format
  107. * find-dired.el::        Feeding Find Output to Dired
  108.  
  109. Dired Internals
  110.  
  111. * Tree Dired Internals::
  112. * Dired Mark Internals::
  113.  
  114. 
  115. File: dired.info,  Node: Dired,  Next: Tree Dired Extra,  Prev: Top,  Up: Top
  116.  
  117. Dired, the Directory Editor
  118. ***************************
  119.  
  120.    Dired makes it easy to delete or visit many of the files in a single
  121. directory (and possibly its subdirectories) at once.  It makes an Emacs
  122. buffer containing a listing of the directories, in the format of `ls
  123. -lR'.  You can use the normal Emacs commands to move around in this
  124. buffer, and special Dired commands to operate on the files.  You can
  125. run shell commands on files, visit, compress, load or byte-compile
  126. them, change their file attributes and insert subdirectories into the
  127. same buffer.  You can "mark" files for later commands or "flag" them
  128. for deletion, either file by file or all files matching certain
  129. criteria.
  130.  
  131. * Menu:
  132.  
  133. * Entering Dired::
  134. * Editing in Dired::
  135. * Listing Files in Dired::
  136. * Marking Files in Dired::
  137. * Mark-using Commands::
  138. * Commands That Do Not Use Marks::
  139. * Subdirectories in Dired::
  140. * Hiding Directories in Dired::
  141. * Acknowledgement::
  142. * Dired Customization::
  143.  
  144. 
  145. File: dired.info,  Node: Entering Dired,  Next: Editing in Dired,  Prev: Dired,  Up: Dired
  146.  
  147. Entering Dired
  148. ==============
  149.  
  150. To invoke Dired, do `C-x d' or `M-x dired'.  The command reads a
  151. directory name or wildcard file name pattern as a minibuffer argument
  152. just like the `list-directory' command, `C-x C-d'. Invoking Dired with
  153. a prefix argument lets you enter the listing switches for the
  154. directory.
  155.  
  156.    Dired assumes you meant to use a wildcard if the last component of
  157. the name is not an existing file.  Note that only the last pathname
  158. component may contain wildcards.  With wildcards it uses the shell to
  159. do the filename globbing, whereas usually it calls `ls' directly. 
  160. Because of this, you might have to quote characters that are special to
  161. the shell.  For example, to dired all auto-save files in your
  162. `~/mail/' directory, use `~/mail/\#*' as argument to Dired.  Note the
  163. backslash needed to quote `#' (at the beginning of a word) to the
  164. shell.
  165.  
  166.    Where `dired' differs from `list-directory' is in naming the buffer
  167. after the directory name or the wildcard pattern used for the listing,
  168. and putting the buffer into Dired mode so that the special commands of
  169. Dired are available in it.  The variable `dired-listing-switches' is a
  170. string used as an argument to `ls' in making the directory; this
  171. string must contain `-l'.  Most other switches are also allowed,
  172. especially `-F', `-i' and `-s'.  For the `-F' switch to work you may
  173. have to set the variable `dired-ls-F-marks-symlinks', depending on what
  174. kind of `ls' program you are using.  *Note Dired Configuration::.
  175.  
  176.    When a Dired buffer for the given directory already exists, it is
  177. simply selected without refreshing it.  You can type `g' if you
  178. suspect it is out of date.
  179.  
  180.    To display the Dired buffer in another window rather than in the
  181. selected window, use `C-x 4 d' (`dired-other-window)' instead of `C-x
  182. d'.
  183.  
  184. 
  185. File: dired.info,  Node: Editing in Dired,  Next: Listing Files in Dired,  Prev: Entering Dired,  Up: Dired
  186.  
  187. Editing in Dired
  188. ================
  189.  
  190. Once the Dired buffer exists, you can switch freely between it and
  191. other Emacs buffers.  Whenever the Dired buffer is selected, certain
  192. special commands are provided that operate on files that are listed. 
  193. The Dired buffer is "read-only", and inserting text in it is not
  194. useful, so ordinary printing characters such as `d' and `x' are used
  195. for Dired commands, and digits are prefix arguments.
  196.  
  197.    The file described by the line that point is on is called the
  198. "current file".  The directory this file is in is the "current Dired
  199. directory".  Note that there may be several directories in one Dired
  200. buffer as long as they belong to the same tree.  The top level
  201. directory, the "root" of the tree, is used as the working directory of
  202. the buffer.
  203.  
  204.    Some or all directories can be "hidden", leaving only their
  205. headerlines visible, and exlcuding their files from Dired operations.
  206.  
  207.    Files can be "marked" for later commands.  Marking means putting a
  208. special character, usually `*', in the first column of the file line. 
  209. To "flag" a file means to mark it for later deletion.  This special
  210. case of "marking" is distinguished so that you do not delete files
  211. accidentally.  Internally, the only difference between marking and
  212. flagging is the character used to mark the file: `*' (an asterisk) for
  213. a marked file, and `D' for files flagged for deletion.
  214.  
  215.    Most Dired commands operate on the "marked" files and default to the
  216. current file.  They are the "mark-using" commands.  Deleting is the
  217. only mark-using command that does not default to the current file.
  218.  
  219.    Dired buffers "know" about each other.  For example, copying from
  220. DIR1 into DIR2 will update DIR2's Dired buffer(s).  When you move
  221. files or directories, file and dired buffers are kept up to date and
  222. refer to the new location.  But Dired only knows about files changed
  223. by itself, not by other parts of Emacs or programs outside Emacs.
  224.  
  225.    All the usual Emacs cursor motion commands are available in Dired
  226. buffers.  Some special purpose commands are also provided.  The keys
  227. `C-n' and `C-p' are redefined so that they try to position the cursor
  228. at the beginning of the filename on the line, rather than at the
  229. beginning of the line.
  230.  
  231.    For extra convenience, SPC and `n' in Dired are equivalent to
  232. `C-n'.  `p' is equivalent to `C-p'.  Moving by lines is also done so
  233. often in Dired that it deserves to be easy to type.  DEL (move up and
  234. unflag) is often useful simply for moving up.
  235.  
  236. 
  237. File: dired.info,  Node: Listing Files in Dired,  Next: Marking Files in Dired,  Prev: Editing in Dired,  Up: Dired
  238.  
  239. Listing Files in Dired
  240. ======================
  241.  
  242. Initially the Dired buffer shows the directory you selected.  The first
  243. line shows the full directory name.  It is an example of a
  244. "headerline" of a directory.  Note that it is terminated by a colon
  245. (`:') that is not part of the directory name.  The second line usually
  246. displays the total size of all files in the directory or the wildcard
  247. used.  Both are examples of "non-file lines".  Applying a command to a
  248. non-file line signals an error.  The other lines of the directory,
  249. called the "file lines", show information about each file such as
  250. permission bits, size and date of last modification, and the name of
  251. the file.
  252.  
  253.    For example, the listing
  254.  
  255.        /home/sk/lib/emacs/lisp:
  256.        total 4973
  257.        -rw-r--r--   1 sk       users      231608 Feb  6 16:58 ChangeLog
  258.        drwxr-sr-x   2 sk       users        2048 Feb  6 11:07 RCS
  259.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  260.        -r--r--r--   1 sk       users      113033 Feb  5 16:21 dired.texi
  261.        ...
  262.      
  263.        /home/sk/lib/emacs/lisp/RCS:
  264.        total 4798
  265.        -r--r--r--   1 sk       users      231748 Feb  6 16:59 dired.texi,v
  266.        -r--r--r--   1 sk       users      763898 Feb  6 10:45 dired.el,v
  267.        ...
  268.  
  269.    has a headerline for the `lisp' directory, a total line saying
  270. there are 4973 K in all the files of that directory (your `ls' program
  271. may use units of blocks instead), and several file lines.  After that,
  272. a headerline for the `RCS' subdirectory with its total line and its
  273. files follows.
  274.  
  275.    Here is an example of a wildcard listing:
  276.  
  277.        /home/sk/lib/emacs/lisp:
  278.        wildcard dired*
  279.        -rw-r--r--   1 sk       users      113036 Feb  6 16:59 dired.texi
  280.        -r--r--r--   1 sk       users       81267 Feb  6 16:29 dired.elc
  281.        -r--r--r--   1 sk       users       38436 Feb  6 16:28 dired-x.elc
  282.        -r--r--r--   1 sk       users       60258 Feb  6 16:27 dired-x.el
  283.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  284.        ...
  285.  
  286.    Since `ls' does not provide a total count when called with a
  287. wildcard argument, the second line now gives instead the wildcard
  288. used, here `dired*'.  If there would have been a directory matching the
  289. wildcard, e.g. a `dired/' subdirectory, its file line would be shown,
  290. but it would not have been expanded automatically.
  291.  
  292.    Filenames may have embedded and trailing (but not leading) spaces. 
  293. Leading spaces are not recognized because different `ls' programs
  294. differ in the amount of whitespace the insert before the filename. 
  295. Filenames may *not* contain newlines or `^M''s.  You can get away with
  296. `^M''s in filenames if you do
  297.  
  298.          (setq selective-display nil)
  299.  
  300. in the Dired buffer (inside `dired-mode-hook', *Note Dired Hooks::.).
  301. But this also disables the `=' and `$' hiding commands, *Note Hiding
  302. Directories in Dired::.
  303.  
  304.    Other unprintable characters than `^M' or newline (`^J') in
  305. filenames are no problem for Dired.  But your `ls' program may not
  306. output them correctly (e.g., replacing all unprintable characters with
  307. a question mark `?').  Dired can do nothing if `ls' suppresses
  308. information about the filenames.  But some (System V derived) `ls'
  309. programs have a `-b' switch to quote control characters, e.g.  `\n'
  310. for a newline character, or `\007' for a ASCII bell character (`C-g'),
  311. so you might want to add `b' to your switches (see below).  Dired
  312. translates the quoted control character escapes when a `-b' switch was
  313. used.  The `-b' switch is the recommended method to cope with funny
  314. filenames containing newlines or leading spaces.  But check if your
  315. `ls' understands `-b' and really quotes newlines and spaces.  Dired is
  316. known to work with GNU `ls -b', but other `ls -b' don't quote spaces,
  317. so leading spaces still don't work with these `ls' programs.
  318.  
  319.    The appearance of the listing is determined by the listing switches
  320. used, for example whether you display or suppress `.' files with the
  321. `-a' and `-A' switches, use the `-F' switch to tag filenames etc.  It
  322. may additionally be restricted to certain files if you used wildcards
  323. to display only those files matching a shell file wildcard.
  324.  
  325.    Dired has commands that change the listing switches for this buffer. 
  326. They are mainly used to set the sort mode, but can also be used to
  327. change other formatting options.  The buffer is automatically refreshed
  328. after the switches are changed to let the new format take effect.
  329.  
  330.    The default value for the switches comes from the variable
  331. `dired-listing-switches'; a prefix argument to `dired' can be use to
  332. determine the switches used for a specific buffer.  *Note Entering
  333. Dired::.  Each Dired buffer has its own value for the switches, stored
  334. in the variable `dired-actual-switches'.
  335.  
  336.    The Dired modeline displays `by name' or `by date' to indicate the
  337. sort mode.  It uses the regexps in the variables
  338. `dired-sort-by-date-regexp' and `dired-sort-by-name-regexp' to decide
  339. what should be displayed.  If neither of the regexps matches, the
  340. listing switches are displayed literally.  You can use this to always
  341. display the literal switches instead of `by name' or `by date': set
  342. them to a regexp that never matches any listing switches, for example
  343. `^$'.
  344.  
  345.    Most `ls' programs can only sort by name (without `-t') or by date
  346. (with `-t'), nothing else.  GNU `ls' additionally sorts on size with
  347. `-S', on extension with `-X', and unsorted (in directory order) with
  348. `-U'.  So anything that does not contain these is sort "by name". 
  349. However, this is configurable in the variable
  350. `dired-ls-sorting-switches', which defaults to `"SXU"'.  It contains a
  351. string of `ls' switches (single letters) except `t' that influence
  352. sorting.  It is consulted at load time, so if you redefine it, you
  353. must do it before Dired is loaded.
  354.  
  355. `s'
  356.      (`dired-sort-toggle-or-edit') Toggle between sort by name/date and
  357.      refresh the dired buffer.  With a prefix argument you can edit the
  358.      current listing switches instead.
  359.  
  360.    After some time the listing may become out of date because of
  361. actions by other programs than Dired.  You can refresh the complete
  362. Dired buffer from disk or only refresh the lines of certain files or a
  363. single file.
  364.  
  365. `l'
  366.      (`dired-do-redisplay') Redisplay all marked (or, with a prefix
  367.      argument, the next N) files.  As always, if no files are marked,
  368.      the current file is used.
  369.  
  370.      If on a headerline, redisplay that subdirectory.  In that case, a
  371.      prefix arg lets you edit the `ls' switches used for the new
  372.      listing.
  373.  
  374. `g'
  375.      (`revert-buffer') The `g' command in Dired ultimately runs
  376.      `dired-revert' to reinitialize the buffer from the actual disk
  377.      directory (or directories).  All marks and flags in the Dired
  378.      buffer are restored, except of course for files that have
  379.      vanished.  Hidden subdirectories are hidden again.  *Note Hiding
  380.      Directories in Dired::.
  381.  
  382. `k'
  383.      (`dired-kill-line-or-subdir') Kill this line (but not this file). 
  384.      Optional prefix argument is a repeat factor.  If file is
  385.      displayed as expanded subdirectory, kill that as well.
  386.  
  387.      If on a subdirectory line, kill that subdirectory.  Reinsert it
  388.      with `i' (`dired-maybe-insert-subdir'), *Note Subdirectories in
  389.      Dired::.
  390.  
  391.      Killing a file line means that the line is removed from the Dired
  392.      buffer.  The file is not touched, and the line will reappear when
  393.      the buffer is refreshed (using `g', `revert-buffer').  A killed
  394.      subdirectory will not reappear after reverting the buffer, since
  395.      `g' only list those subdirectories that were listed before.
  396.  
  397. `M-k'
  398.      (`dired-do-kill') Kill all marked lines (not files).  With a
  399.      prefix argument, kill all lines not marked or flagged.
  400.  
  401.      (For file marking, *Note Marking Files in Dired::.)
  402.  
  403. `C-x u'
  404. `C-_'
  405.      (`dired-undo') Undo in a Dired buffer.  This doesn't recover lost
  406.      files, it is just normal undo with a temporarily writable buffer.
  407.       You can use it to recover marks, killed lines or subdirs.  In
  408.      the latter case, you have to do `M-x dired-build-subdir-alist' to
  409.      parse the buffer again for the new subdirectory list.
  410.  
  411. 
  412. File: dired.info,  Node: Marking Files in Dired,  Next: Mark-using Commands,  Prev: Listing Files in Dired,  Up: Dired
  413.  
  414. Marking Files in Dired
  415. ======================
  416.  
  417. This section describes commands to mark and unmark single files, and
  418. commands to mark several files at once if they match certain criteria. 
  419. There also is a command to move to the next marked file.
  420.  
  421.    As always, hidden subdirs are not affected.  *Note Hiding
  422. Directories in Dired::.
  423.  
  424. `m'
  425.      (`dired-mark-subdir-or-file') If on a file line, mark the current
  426.      file.  A numeric argument tells how many next or previous files
  427.      to mark.  If on a subdirectory header line, mark all its files
  428.      except `.' and `..'.
  429.  
  430. `u'
  431.      (`dired-unmark-subdir-or-file') Like `m', only unmarking instead
  432.      of marking.
  433.  
  434. `DEL'
  435.      (`dired-backup-unflag') Move up lines and remove flags there. 
  436.      Optional prefix argument says how many lines to unflag; default
  437.      is one line.
  438.  
  439. `M-DEL'
  440.      (`dired-unflag-all-files') Remove a specific or all flags from
  441.      every file.  With an argument, queries for each marked file. 
  442.      Type your help character, usually `C-h', at that time for help.
  443.  
  444. `*'
  445.      (`dired-mark-executables') Mark all executable files.  With prefix
  446.      argument, unflag all those files.
  447.  
  448. `@'
  449.      (`dired-mark-symlinks') Mark all symbolic links.  With prefix
  450.      argument, unflag all those files.
  451.  
  452. `/'
  453.      (`dired-mark-directories') Mark all directory files except `.' and
  454.      `..'.  With prefix argument, unflag all those files.
  455.  
  456. `%m'
  457.      (`dired-mark-files-regexp') Mark all files matching REGEXP for
  458.      use in later commands.  A prefix argument means to unmark them
  459.      instead.  `.' and `..' are never marked.
  460.  
  461.      The match is against the non-directory part of the filename.  Use
  462.      `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  463.  
  464.      This is an Emacs regexp, not a shell wildcard.    E.g., use `\.o$'
  465.      for object files - just `.o' will mark more than you might think. 
  466.      By default, the match is case sensitive (just like filenames),
  467.      since `case-fold-search' is set to `nil' in Dired buffers.
  468.  
  469. `M-}'
  470.      (`dired-next-marked-file') Move to the next marked file, wrapping
  471.      around the end of the buffer.
  472.  
  473. `M-{'
  474.      (`dired-prev-marked-file') Move to the previous marked file,
  475.      wrapping around the beginning of the buffer.
  476.  
  477. 
  478. File: dired.info,  Node: Mark-using Commands,  Next: Commands That Do Not Use Marks,  Prev: Marking Files in Dired,  Up: Dired
  479.  
  480. Mark-using Commands
  481. ===================
  482.  
  483.    Most Dired commands operate on the "marked" files and default to the
  484. current file.  They are the "mark-using" commands.  Deleting is the
  485. only mark-using command that does not default to the current file.
  486.  
  487.    Mark-using Dired commands treat a numeric argument as a repeat
  488. count, meaning to act on the files of the next few lines instead of on
  489. the marked files.  That is, when you give a prefix argument the marks
  490. are not consulted at all.  A negative argument means to operate on the
  491. files of the preceding lines.  Either set of files is called "marked
  492. files" below, whether they really come from marks or from a prefix
  493. argument.  The prompt of a mark-using command always makes clear which
  494. set of files is operated upon: it mentions either the marker character
  495. `*' or the `next N' files, where a negative N really means the
  496. previous -N files.
  497.  
  498.    Thus you can use a prefix argument of `1' to apply a command to
  499. just the current file, e.g, if you don't want to disturb the other
  500. files you marked.  As digits are prefix arguments in Dired, simply
  501. type `1' followed by the command.
  502.  
  503.    Many mark-using commands treat a prefix of N=0 specially, since it
  504. would otherwise be a no-op.
  505.  
  506.    All mark-using commands display a list of files for which they
  507. failed.  Type `W' to see why a (mark-using or other) command failed. 
  508. Error messages from shell commands (`stderr') cannot be redirected
  509. separately and goes together with the usual output (`stdout').
  510.  
  511. * Menu:
  512.  
  513. * Copy and Move Into a Directory::
  514. * Renaming and More With Regexps::
  515. * Other File Creating Commands::
  516. * Deleting Files With Dired::
  517. * Dired Shell Commands::
  518. * Compressing and Uncompressing::
  519. * Changing File Attributes::
  520. * Loading and Byte-compiling Emacs Lisp Files::
  521. * Printing the Marked Files::
  522.  
  523. 
  524. File: dired.info,  Node: Copy and Move Into a Directory,  Next: Renaming and More With Regexps,  Prev: Mark-using Commands,  Up: Mark-using Commands
  525.  
  526. Copy, Move etc. Into a Directory
  527. --------------------------------
  528.  
  529. This section explains commands that create a new file for each marked
  530. file, for example by copying (`c') or moving (`r') files.  They prompt
  531. in the minibuffer for a TARGET argument, usually the target directory
  532. in which the new files are created.  But if there is but one marked
  533. file, the target may also be a plain file.  (Otherwise you could not
  534. simply rename or copy a single file within the same directory.) Even
  535. with one marked file the target may still be an (existing) directory.
  536.  
  537.    The target prompt displays a "default target" that will be used if
  538. you just type `RET'.  Normally the default target is the current Dired
  539. directory, so if you want to copy into some specific subdirectory,
  540. move point into that subdirectory before typing `c'.  But if there is
  541. a Dired buffer in the next window, and `dired-dwim-target' is true,
  542. its current Dired directory is used.  This makes it easy to copy from
  543. one Dired buffer into another if both are displayed.  On the other
  544. hand you have to use `C-x 1' to make other Dired buffers vanish if you
  545. do not want to have them as default targets.  To make Dired never look
  546. at the next window, set the variable `dired-dwim-target' to nil
  547. (`dwim' means Do What I Mean).  *Note Dired User Options::, on how to
  548. set cutomization variables.
  549.  
  550.    As a general rule, Dired will not let you remove or overwrite a file
  551. without explicit confirmation.  Dired asks you for each existing target
  552. file whether or not to overwrite just this file (answer `y' or `n') or
  553. all remaining files (answer `!').  You can also type your help
  554. character, usually `C-h', at that time for help.
  555.  
  556. `c'
  557.      (`dired-do-copy') Copy the marked (or next N) files into a
  558.      directory, or copy a single file.
  559.  
  560.      Thus, a zero prefix argument (N-0) copies nothing.  But it toggles
  561.      the variable `dired-copy-preserve-time'.
  562.        *Note Dired User Options::, on how to set customization
  563.      variables.
  564.  
  565. `r'
  566.      (`dired-do-move') Move the marked files into a directory.  If
  567.      there is just one marked file, rename that file.  As the marked
  568.      files default to the current file, this can also be used to
  569.      simply rename the current file.
  570.  
  571.      Dired silently changes the visited file name of buffers
  572.      associated with moved files so that they refer to the new
  573.      location of the file.
  574.  
  575.      When a directory is renamed, its headerlines in Dired buffers are
  576.      updated, and any buffers visiting affected files have their
  577.      visited file name changed to refer to the new location.  Their
  578.      buffer name is changed if no buffer with such a name already
  579.      exists.  Affected files are all those which contain the directory
  580.      somewhere in their absolute path name.
  581.  
  582.      A zero prefix arguments does not move any files, but toggles the
  583.      variable `dired-dwim-target'.
  584.  
  585. `H'
  586.      (`dired-do-hardlink') Make hard links from the target directory
  587.      to each marked file.
  588.  
  589. `Y'
  590.      (`dired-do-symlink') Make symbolic links from the target
  591.      directory to each marked file.
  592.  
  593.    Linking is very similar to copying in that new files are created
  594. while the old files stay.  If you want each newly copied or linked
  595. file to be marked with the same marker that its original has, set the
  596. variables `dired-keep-marker-copy', `dired-keep-marker-hardlink' or
  597. `dired-keep-marker-symlink' to `t'.  Set them to `nil' to not give
  598. these newly created files marks.  The default is to mark them with
  599. `C', `H' and `Y', respectively.
  600.  
  601.    Moving differs from copying and linking in that the old file is
  602. removed as part of the creation of the new file.  Thus it makes sense
  603. to set the variable `dired-keep-marker-move' to `t' (the default) so
  604. that moved files "take their markers with them".
  605.  
  606. 
  607. File: dired.info,  Node: Renaming and More With Regexps,  Next: Other File Creating Commands,  Prev: Copy and Move Into a Directory,  Up: Mark-using Commands
  608.  
  609. Renaming (and More) With Regexps
  610. --------------------------------
  611.  
  612.    A second class of Commands uses regular expressions to construct a
  613. new filename from each marked file. *Note Syntax of Regular
  614. Expressions: (emacs)Regexps.  The commands to make new names by regexp
  615. conversion are the same as those to make them in another directory,
  616. except that they share a prefix char, `%'.
  617.  
  618. `%r'
  619.      (`dired-rename-regexp') Rename files with regexps
  620.  
  621. `%c'
  622.      (`dired-do-copy-regexp') Copy files with regexps.
  623.  
  624. `%H'
  625.      (`dired-do-hardlink-regexp') Make hard links with regexps.
  626.  
  627. `%Y'
  628.      (`dired-do-symlink-regexp') Make symbolic links with regexps.
  629.  
  630.    These commands prompt in the minibuffer for a REGEXP and a NEWNAME.
  631.  For each marked file matching REGEXP, a new filename is constructed
  632. from NEWNAME.  The match can be anywhere in the file name, it need not
  633. span the whole filename.  Use `^' and `$' to anchor matches that
  634. should span the whole filename.  Only the first match in the filename
  635. is replaced with NEWTEXT.  (It would be easy to change this to replace
  636. all matches, but probably harder to use.)
  637.  
  638.    `\&' in NEWNAME stands for the entire text being replaced.  `\D' in
  639. NEWNAME, where D is a digit, stands for whatever matched the D'th
  640. parenthesized grouping in REGEXP.  As each match is found, the user
  641. must type a character saying whether or not to apply the command to
  642. just this file (`y' or `n') or to all remaining files(`!').  For help
  643. type your help character, usually `C-h', at that time.
  644.  
  645.    For example, if you want to rename all `.lsp' files to `.el' files,
  646. type first `%m' with `\.lsp$' as regexp to mark all `.lsp' files. 
  647. Then type `%r' with `\.lsp$' and `.el' as REGEXP and NEWTEXT
  648. arguments.  Dired will prompt you for each file to be renamed.
  649.  
  650.    Or to append `.old' to all marked files, use `%r' `$' `RET' `.old'
  651. `RET', replacing the empty string at the end of each file name with
  652. `.old'.
  653.  
  654.    You can use the regexp `\(.+\)\.\(.+\)$' to make the basename as
  655. `\1' and the extension as `\2' available in NEWTEXT.
  656.  
  657.    With a zero prefix arg, renaming by regexp affects the complete
  658. pathname.  Usually only the non-directory part of file names is used
  659. and changed, and renaming only takes place within the current
  660. directory.  The zero prefix argument can be used to change the
  661. directory part as well.
  662.  
  663.    Often you will want to apply the command to all files matching the
  664. same REGEXP that you use in the command.  Simply use the `%m' command
  665. with REGEXP as argument, which will then also be the default for the
  666. next regexp using command. For example, to remove a `V17I12-' prefix
  667. from several filenames, use `%m' `^V17I12-' `RET' `%r' `RET' `RET', in
  668. effect replacing the prefix with the empy string.
  669.  
  670. 
  671. File: dired.info,  Node: Other File Creating Commands,  Next: Deleting Files With Dired,  Prev: Renaming and More With Regexps,  Up: Mark-using Commands
  672.  
  673. Other File Creating Commands
  674. ----------------------------
  675.  
  676.    Commands to change the case of file names:
  677.  
  678. `%u'
  679.      (`dired-upcase') Rename each marked file to upper case.
  680.  
  681. `%l'
  682.      (`dired-downcase') Rename each marked file to lower case.
  683.  
  684. 
  685. File: dired.info,  Node: Deleting Files With Dired,  Next: Dired Shell Commands,  Prev: Other File Creating Commands,  Up: Mark-using Commands
  686.  
  687. Deleting Files With Dired
  688. -------------------------
  689.  
  690. Deleting is a special mark-using command.  It uses a special marker,
  691. `D', and does not default to the current file if no files are marked
  692. to prevent accidental deletions.
  693.  
  694.    *Note Dired Customization::, variable `dired-del-marker' to make
  695. deleting behave exactly like any mark-using command.
  696.  
  697. `d'
  698.      (`dired-flag-file-deleted') Flag this file for deletion.  If on a
  699.      subdirectory headerline, mark all its files except `.' and `..'.
  700.  
  701. `u'
  702.      (`dired-unmark-subdir-or-file') Remove deletion-flag on this line.
  703.  
  704. `DEL'
  705.      (`dired-backup-unflag') Remove deletion-flag on previous line,
  706.      moving point to that line.
  707.  
  708. `%d'
  709.      (`dired-flag-regexp-files') Flag all files containing the
  710.      specified REGEXP for deletion.
  711.  
  712.      The match is against the non-directory part of the filename.  Use
  713.      `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  714.  
  715.      The special directories `.' and `..' are never flagged.
  716.  
  717. `x'
  718.      (`dired-do-deletions') Delete the files that are flagged for
  719.      deletion (with `D').
  720.  
  721. `X'
  722.      (`dired-do-delete') Delete the `*'-marked (as opposed to the
  723.      `D'-flagged) files.
  724.  
  725. `#'
  726.      (`dired-flag-auto-save-files') Flag all auto-save files (files
  727.      whose names start and end with `#') for deletion (*note
  728.      Auto-Saving: Protection Against Disasters: (emacs)Auto Save.).
  729.  
  730. `~'
  731.      (`dired-flag-backup-files') Flag all backup files (files whose
  732.      names end with `~') for deletion (*note Backup Files:
  733.      (emacs)Backup.).
  734.  
  735. `. (Period)'
  736.      (`dired-clean-directory') Flag excess numeric backup files for
  737.      deletion.  The oldest and newest few backup files of any one file
  738.      are exempt; the middle ones are flagged.
  739.  
  740.    You can flag a file for deletion by moving to the line describing
  741. the file and typing `d' or `C-d'.  The deletion flag is visible as a
  742. `D' at the beginning of the line.  Point is moved to the beginning of
  743. the next line, so that repeated `d' commands flag successive files.
  744.  
  745.    The files are flagged for deletion rather than deleted immediately
  746. to avoid the danger of deleting a file accidentally.  Until you direct
  747. Dired to delete the flagged files, you can remove deletion flags using
  748. the commands `u' and DEL.  `u' works just like `d', but removes flags
  749. rather than making flags.  DEL moves upward, removing flags; it is
  750. like `u' with numeric argument automatically negated.
  751.  
  752.    To delete the flagged files, type `x'.  This command first displays
  753. a list of all the file names flagged for deletion, and requests
  754. confirmation with `yes'.  Once you confirm, all the flagged files are
  755. deleted, and their lines are deleted from the text of the Dired
  756. buffer.  The shortened Dired buffer remains selected.  If you answer
  757. `no' or quit with `C-g', you return immediately to Dired, with the
  758. deletion flags still present and no files actually deleted.
  759.  
  760.    Deletions proceed from the end of the buffer, so if subdirs are in a
  761. natural order in the buffer, it usually works to flag `dir1',
  762. `dir1/dir2' and `dir1/dir2/*' (by typing `d' on the directory
  763. headerlines) and delete everything, including `dir1/dir2' and `dir1'. 
  764. Using shell commands (e.g.  `rm -rf') to remove complete directories
  765. may be quicker than having Dired remove each file separately. (*Note
  766. Dired Shell Commands::.)  However, like all actions external to Dired,
  767. this does not update the display.
  768.  
  769.    The `#', `~' and `.' commands flag many files for deletion, based
  770. on their names.  These commands are useful precisely because they do
  771. not actually delete any files; you can remove the deletion flags from
  772. any flagged files that you really wish to keep.
  773.  
  774.    `#' flags for deletion all files that appear to have been made by
  775. auto-saving (that is, files whose names begin and end with `#').  `~'
  776. flags for deletion all files that appear to have been made as backups
  777. for files that were edited (that is, files whose names end with `~').
  778.  
  779.    `.' (Period) flags just some of the backup files for deletion: only
  780. numeric backups that are not among the oldest few nor the newest few
  781. backups of any one file.  Normally `dired-kept-versions' (not
  782. `kept-new-versions'; that applies only when saving) specifies the
  783. number of newest versions of each file to keep, and
  784. `kept-old-versions' specifies the number of oldest versions to keep. 
  785. Period with a positive numeric argument, as in `C-u 3 .', specifies
  786. the number of newest versions to keep, overriding
  787. `dired-kept-versions'.  A negative numeric argument overrides
  788. `kept-old-versions', using minus the value of the argument to specify
  789. the number of oldest versions of each file to keep.
  790.  
  791. 
  792. File: dired.info,  Node: Dired Shell Commands,  Next: Compressing and Uncompressing,  Prev: Deleting Files With Dired,  Up: Mark-using Commands
  793.  
  794. Shell Commands on Marked files
  795. ------------------------------
  796.  
  797. You can run arbitrary shell commands on the marked files. If there is
  798. output, it goes to a separate buffer.
  799.  
  800. `!'
  801.      (`dired-do-shell-command') Run a shell command on the marked
  802.      files.
  803.  
  804.    A command string is prompted for in the minibuffer.  The list of
  805. marked files is appended to the command string unless asterisks `*'
  806. indicate the place(s) where the list should go.  Thus,
  807.  
  808.      command -flags
  809.  
  810.    is equivalent to
  811.  
  812.      command -flags *
  813.  
  814.    The filenames are inserted in the order they appear in the buffer. 
  815. The file listed topmost in the buffer will be the leftmost in the list.
  816.  
  817.    Currently, there is no way to insert a real `*' into the command.
  818.  
  819.    As with all mark-using commands, if no files are marked or a
  820. specific numeric prefix arg is given, the current or the next N files
  821. are used.  The prompt mentions the file(s) or the marker, as
  822. appropriate.
  823.  
  824.    However, for shell commands, a zero argument is special. It means
  825. to run command on each marked file separately:
  826.  
  827.      cmd * |foo
  828.  
  829.    results in
  830.  
  831.      cmd F1 |foo; ...; cmd FN |foo
  832.  
  833.    Usually
  834.  
  835.      cmd F1 ... FN |foo
  836.  
  837.    would be executed.
  838.  
  839.    No automatic redisplay is attempted because Dired cannot know what
  840. files should be redisplayed for a general shell command.  For example,
  841. a `tar cvf' will not change the marked files at all, but rather create
  842. a new file, while a `ci -u -m'...' *' will probably change the
  843. permission bits of all marked files.
  844.  
  845.    Type `l' to redisplay just the marked files, or `l' on a directory
  846. headerline to redisplay just that directory, or `g' to redisplay all
  847. directories.
  848.  
  849.    The shell command has the top level directory as working directory,
  850. so output files usually are created there instead of in a subdirectory,
  851. which may sometimes be surprising if all files come from the same
  852. subdirectory.  Just remember that an Emacs buffer can have but one
  853. working directory, and this is the top level directory in Dired
  854. buffers.
  855.  
  856.    Examples for shell commands:
  857.  
  858.    * Type `!' and
  859.  
  860.           tar cvf foo.tar
  861.  
  862.           to tar all marked files into a `foo.tar' file.  Dired does not
  863.      know that a new file has been created and you have to type `g' to
  864.      refresh the listing.  If you have several subdirectories in your
  865.      Dired buffer, the names given to `tar' will be relative to the
  866.      top level directory, and the output file `foo.tar' will also be
  867.      created there.
  868.  
  869.      You can use
  870.  
  871.           tar cvf - * | compress -c > foo.tar.Z
  872.  
  873.           as an alternative to immediately compress the tar file.
  874.  
  875.    * Type `0 !' and
  876.  
  877.           uudecode
  878.  
  879.           to uudecode each of the marked files.  Note the use of the zero
  880.      prefix argument to apply the shell command to each file
  881.      separately (uudecode doesn't accept a list of input files).  Type
  882.      `g' afterwards to see the created files.
  883.  
  884.    * Type `0 !' and
  885.  
  886.           uuencode * * >*.uu
  887.  
  888.           to uuencode each of the marked files, writing into a corresponding
  889.      `.uu' file.  Note the use of the zero prefix argument to apply the
  890.      shell command to each file separately.  Type `g' afterwards to see
  891.      the created `.uu' files.
  892.  
  893.    * Type `1 !' and
  894.  
  895.           mail joe@somewhere <*
  896.  
  897.           to mail the current file (note the prefix argument `1') to user
  898.      `joe@somewhere'.
  899.  
  900.    * Here is a Dired shell command to execute the current file,
  901.      assuming no other files are marked (else just give the prefix `1'
  902.      to `!'):
  903.  
  904.           ./*
  905.  
  906.           which will be expanded to `./CMD', thus CMD will be executed.. 
  907.      (Just `./' would be expanded to `./ CMD', with an intervening
  908.      `SPC'.)  This will work even if you don't have `.' in your
  909.      `$PATH'.  If `.' is in your path (not a good idea, as you will
  910.      find out if you dired a directory containing a file named `ls'),
  911.      a single `SPC' as command would also work.
  912.  
  913. 
  914. File: dired.info,  Node: Compressing and Uncompressing,  Next: Changing File Attributes,  Prev: Dired Shell Commands,  Up: Mark-using Commands
  915.  
  916. Compressing and Uncompressing
  917. -----------------------------
  918.  
  919. You can compress or uncompress the marked files.  Dired refuses to
  920. compress files ending in `.Z' (which are already compressed) or
  921. symbolic links (the link would be overwritten by a plain, compressed
  922. file) and to uncompress files not ending in `.Z'.
  923.  
  924. `C'
  925.      (`dired-do-compress') Compress the marked files.
  926.  
  927. `U'
  928.      (`dired-do-uncompress') Uncompress the marked files.
  929.  
  930. 
  931. File: dired.info,  Node: Changing File Attributes,  Next: Loading and Byte-compiling Emacs Lisp Files,  Prev: Compressing and Uncompressing,  Up: Mark-using Commands
  932.  
  933. Changing File Attributes
  934. ------------------------
  935.  
  936. You can change the file attributes (mode, group, owner) of marked
  937. files.
  938.  
  939. `M'
  940.      (`dired-do-chmod') Change the mode (also called "permission
  941.      bits") of the marked files.  This calls the `chmod' program, thus
  942.      symbolic modes like `g+w' are allowed.
  943.  
  944.      Multiple switches like `-fR g+w' are not understood, though.  Use
  945.      `!' (`dired-do-shell-command') for that.
  946.  
  947. `G'
  948.      (`dired-do-chgrp') Change the group of the marked files.
  949.  
  950. `O'
  951.      (`dired-do-chown') Change the owner of the marked files.  This
  952.      usually works for the superuser only.  It uses the program in the
  953.      variable `dired-chown-program' to do the change.
  954.  
  955. 
  956. File: dired.info,  Node: Loading and Byte-compiling Emacs Lisp Files,  Next: Printing the Marked Files,  Prev: Changing File Attributes,  Up: Mark-using Commands
  957.  
  958. Loading and Byte-compiling Emacs Lisp Files
  959. -------------------------------------------
  960.  
  961. You can load and byte-compile GNU Emacs Lisp files.  Errors are caught
  962. and reported after all files have been processed.
  963.  
  964. `L'
  965.      (`dired-do-load') Load the marked elisp files.
  966.  
  967. `B'
  968.      (`dired-do-byte-compile') Byte compile the marked elisp files.
  969.  
  970. 
  971. File: dired.info,  Node: Printing the Marked Files,  Prev: Loading and Byte-compiling Emacs Lisp Files,  Up: Mark-using Commands
  972.  
  973. Printing the Marked Files
  974. -------------------------
  975.  
  976. `P'
  977.      (`dired-do-print') Print the marked (or next N) files.  Uses the
  978.      shell command coming from variables `lpr-command' and
  979.      `lpr-switches' as default.
  980.  
  981.      Since internally this is just a special case of
  982.      `dired-do-shell-command', you can use `*' and pipes like for
  983.      shell command, e.g.,
  984.  
  985.           (setq lpr-command: "lwf")
  986.           (setq lpr-switches: '("-l -m * | lpr -Palw"))
  987.  
  988.           to print with the shell command `lwf -l -m * | lpr -Palw', where
  989.      `*' will be substituted by the marked files.  The `lpr-buffer'
  990.      and `lpr-region' don't know about `*' or `|', though, only Dired
  991.      does.
  992.  
  993. 
  994. File: dired.info,  Node: Commands That Do Not Use Marks,  Next: Subdirectories in Dired,  Prev: Mark-using Commands,  Up: Dired
  995.  
  996. Commands That Do Not Use Marks
  997. ==============================
  998.  
  999. These are commands that visit files.  *Note Visiting Files:
  1000. (emacs)Visiting.
  1001.  
  1002. `f'
  1003.      (`dired-advertised-find-file') Visits the file described on the
  1004.      current line.  It is just like typing `C-x C-f' and supplying that
  1005.      file name.  If the file on this line is a subdirectory, `f'
  1006.      actually causes Dired to be invoked on that subdirectory.
  1007.  
  1008. `o'
  1009.      (`dired-find-file-other-window') Like `f', but uses another
  1010.      window to display the file's buffer.  The Dired buffer remains
  1011.      visible in the first window.  This is like using `C-x 4 C-f' to
  1012.      visit the file.  *Note Multiple Windows: (emacs)Windows.
  1013.  
  1014. `v'
  1015.      (`dired-view-file') Views the file described on this line using
  1016.      `M-x view-file'.  Viewing a file is like visiting it, but is
  1017.      slanted toward moving around in the file conveniently and does
  1018.      not allow changing the file.  *Note View File: (emacs)Misc File
  1019.      Ops.   Viewing a file that is a directory goes to its headerline
  1020.      if it is in this buffer.  Otherwise, it is displayed in another
  1021.      buffer.
  1022.  
  1023. Commands to diff a file:
  1024.  
  1025. `D'
  1026.      (`dired-diff') Compare file at point with another file (default:
  1027.      file at mark), by running the system command `diff'.  The other
  1028.      file is the first file given to `diff'.
  1029.  
  1030. `M-~'
  1031.      (`dired-backup-diff') Diff this file with its backup file.  Uses
  1032.      the latest backup, if there are several numerical backups.  If
  1033.      this file is a backup, diff it with its original.  The backup
  1034.      file is the first file given to `diff'.
  1035.  
  1036. Other commands:
  1037.  
  1038. `+'
  1039.      (`dired-create-directory') Create a directory.
  1040.  
  1041. `W'
  1042.      (`dired-why') Pop up a buffer with error log output from Dired. 
  1043.      All mark-using commands log errors there.  (Standard error from
  1044.      shell commands cannot be logged separately, it goes into the
  1045.      usual shell command output buffer.)  A group of errors from a
  1046.      single command ends with a formfeed, so that you can use `C-x ['
  1047.      (`backward-page') to find the beginning of new error logs that
  1048.      are reported by a command.
  1049.  
  1050. 
  1051. File: dired.info,  Node: Subdirectories in Dired,  Next: Hiding Directories in Dired,  Prev: Commands That Do Not Use Marks,  Up: Dired
  1052.  
  1053. Subdirectories in Dired
  1054. =======================
  1055.  
  1056. Thise section explains how to "insert" (or "expand") subdirectories in
  1057. the same Dired buffer and move around in them.
  1058.  
  1059.    You can display subdirectories in your Dired buffer by using `-R'
  1060. in your Dired listing switches.  But you do not usually want to have a
  1061. complete recursive listing in all your Dired buffers.  So there is a
  1062. command to insert a single directory:
  1063.  
  1064. `i'
  1065.      (`dired-maybe-insert-subdir') Insert this subdirectory into the
  1066.      same Dired buffer.  If it is already present, just move to it
  1067.      (type `l', `dired-do-redisplay' to refresh it).  Else inserts it
  1068.      as `ls -lR' would have done.  With a prefix arg, you may edit the
  1069.      ls switches used for this listing.  You can add `R' to the
  1070.      switches to expand the whole tree starting at this subdirectory. 
  1071.      This function takes some pains to conform to `ls -lR' output. 
  1072.      For example, it adds the headerline for the inserted subdirectory.
  1073.  
  1074.      The mark is dropped before moving, so `C-x C-x' takes you back to
  1075.      the old position in the buffer.
  1076.  
  1077.    Dired changes the buffer-local value of the variable
  1078. `page-delimiter' to `"\n\n"', so that subdirectories become pages. 
  1079. Thus, the page moving commands `C-x [' and `C-x ]' (`backward-page'
  1080. and `forward-page') can be used to move to the beginning (i.e., the
  1081. headerlines) of subdirectories.
  1082.  
  1083.    In addition, the following commands move around directory-wise,
  1084. usually putting you on a file line instead of on a headerline.  For a
  1085. mnemonic, note that they all look like rotated versions of each other,
  1086. and that they move in the direction they point to.
  1087.  
  1088. `<'
  1089.      (`dired-prev-dirline') Goto previous directory file line.
  1090.  
  1091. `>'
  1092.      (`dired-next-dirline') Goto next directory file line.
  1093.  
  1094. `^'
  1095.      (`dired-up-directory') Dired parent directory.  Tries first to
  1096.      find its file line, then its header line in this buffer, then its
  1097.      Dired buffer, finally creating a new Dired buffer if necessary.
  1098.  
  1099. `v'
  1100.      (`dired-view-file') When the current file is not a directory, view
  1101.      it.  When file is a directory, tries to go to its subdirectory.
  1102.  
  1103.      This command is inverse to the `^' command and it is very
  1104.      convenient to use these two commands together.
  1105.  
  1106.    The following commands move up and down in the directory tree:
  1107.  
  1108. `M-C-u'
  1109.      (`dired-tree-up') Go up to the parent directory's headerline.
  1110.  
  1111. `M-C-d'
  1112.      (`dired-tree-down') Go down in the tree, to the first
  1113.      subdirectory's headerline.
  1114.  
  1115.    The following commands move forwards and backwards to subdirectory
  1116. headerlines:
  1117.  
  1118. `M-C-n'
  1119.      (`dired-next-subdir') Go to next subdirectory headerline,
  1120.      regardless of level.
  1121.  
  1122. `M-C-p'
  1123.      (`dired-prev-subdir') Go to previous subdirectory headerline,
  1124.      regardless of level.
  1125.  
  1126. 
  1127. File: dired.info,  Node: Hiding Directories in Dired,  Next: Acknowledgement,  Prev: Subdirectories in Dired,  Up: Dired
  1128.  
  1129. Hiding Directories in Dired
  1130. ===========================
  1131.  
  1132. "Hiding" a subdirectory means to make it invisible, except for its
  1133. headerline.  Files inside a hidden subdirectory are never considered by
  1134. Dired.  For example, mark-using commands will not "see" files in a
  1135. hidden directory.  Thus you can use hiding to temporarily exclude
  1136. subdirectories from operations without having to remove the markers.
  1137.  
  1138.    The hiding commands toggle, that is they unhide what was hidden and
  1139. vice versa.
  1140.  
  1141. `$'
  1142.      (`dired-hide-subdir') Hide or unhide the current subdirectory and
  1143.      move to next directory.  Optional prefix argument is a repeat
  1144.      factor.
  1145.  
  1146. `='
  1147.      (`dired-hide-all') Hide all subdirectories, leaving only their
  1148.      header lines.  If there is already something hidden, make
  1149.      everything visible again.  Use this command to get an overview in
  1150.      very deep directory trees or to move quickly to subdirs far away.
  1151.  
  1152. 
  1153. File: dired.info,  Node: Acknowledgement,  Next: Dired Customization,  Prev: Hiding Directories in Dired,  Up: Dired
  1154.  
  1155. Acknowledgement
  1156. ===============
  1157.  
  1158. I would like to thank
  1159.  
  1160.    * Richard Stallman for providing a pre-release version of `dired.el'
  1161.      from Emacs 19, critical comments and many helpful suggestions
  1162.  
  1163.    * Andy Norman for the collaboration that made Tree Dired and
  1164.      ange-ftp such a successful combination
  1165.  
  1166.    * Jamie Zawinski for insisting on and writing nested Dired format,
  1167.      and for lots of other things
  1168.  
  1169.    * Michael Ernst for the "omitting" code and helpful discussion about
  1170.      Dired design
  1171.  
  1172.    * Hans Chalupsky for providing FTP service and writing
  1173.      `dired-trns.el'
  1174.  
  1175.    * Roland McGrath for `find-dired.el' and bug fixes for the diffing
  1176.      commands
  1177.  
  1178.    * Kevin Gallagher for sending me existing VMS Dired fixes
  1179.  
  1180.    * Hal R. Brand for VMS support and porting his old dired fixes to
  1181.      Tree Dired
  1182.  
  1183.    * Hugh Secker-Walker for writing `dired-cd.el'
  1184.  
  1185.    * Tom Wurgler for ideas such as the "dired-jump-back" command
  1186.  
  1187.    * Cengiz Alaettinoglu, who found more bugs in Tree Dired than
  1188.      anybody else (except me)
  1189.  
  1190. and all other beta testers and people who reported bugs or just said
  1191. "thanks".
  1192.  
  1193. 
  1194. File: dired.info,  Node: Dired Customization,  Prev: Acknowledgement,  Up: Dired
  1195.  
  1196. Dired Customization
  1197. ===================
  1198.  
  1199. You can customize Dired by setting some variables in your `~/.emacs'
  1200. file.  Other variables are intended to be configured when Dired is
  1201. installed.  Finally, there are so-called `hook' variables.
  1202.  
  1203. * Menu:
  1204.  
  1205. * Dired User Options::
  1206. * Dired Configuration::
  1207. * Dired Hooks::
  1208.  
  1209.